pattern = cairo_pattern_create_for_surface (surface);
cairo_pattern_set_extend (pattern, CAIRO_EXTEND_PAD);
cairo_set_source (cr, pattern);
- cairo_paint (cr);
+ cairo_rectangle (cr,
+ 0, 0,
+ gdk_texture_get_width (self->texture), gdk_texture_get_height (self->texture));
+ cairo_fill (cr);
cairo_restore (cr);
});
cairo_set_source (cr, pattern);
- cairo_paint (cr);
+ cairo_rectangle (cr,
+ node->bounds.origin.x, node->bounds.origin.y,
+ node->bounds.size.width, node->bounds.size.height);
+ cairo_fill (cr);
cairo_pattern_destroy (pattern);
cairo_surface_destroy (surface);
cairo_surface_unmap_image (surface, image_surface);
cairo_set_source (cr, pattern);
- cairo_paint (cr);
+ cairo_rectangle (cr,
+ node->bounds.origin.x, node->bounds.origin.y,
+ node->bounds.size.width, node->bounds.size.height);
+ cairo_fill (cr);
cairo_restore (cr);
cairo_pattern_destroy (pattern);